-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix lint errors #530
fix lint errors #530
Conversation
✅ Deploy Preview for 3dstreet-core-builds ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
||
// load from URL encoded Streetplan JSON | ||
if (data.streetplanEncJSON) { | ||
const streetplanJSON = decodeURIComponent(encodedString); | ||
const streetplanJSON = decodeURIComponent(data.streetplanEncJSON); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems you fixed a real issue here. Great.
@@ -1,4 +1,4 @@ | |||
import React, { useEffect, useRef, useState } from 'react'; | |||
import { useEffect, useRef, useState } from 'react'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to use useCallback for handleClickOutside
@@ -60,7 +60,7 @@ const SceneEditTitle = ({ sceneData }) => { | |||
<input | |||
className={styles.title} | |||
value={title} | |||
onChange={handleChange} | |||
// onChange={handleChange} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Judging by how I understood the code, there is no need to use the onChange
handler for this input
, at least now. Because the new scene title is entered in the prompt window. Related issue: 3DStreet/3dstreet-editor#311
Fix issue: #527